package com.kgc.scd.service;


import com.kgc.scd.bean.SensitiveType;
import com.kgc.scd.bean.SensitiveWord;
import com.kgc.scd.bean.SensitiveWordResult;
import com.kgc.scd.util.PageSupport;

import java.util.List;

/**
 * Created On : 2022/6/15.
 * <p>
 * Author : xzy
 * <p>
 * Description: 敏感词业务接口
 */
public interface SensitiveWordService {

    /**
     * @author : zhukang
     * @date   : 2022/4/28
     * @param  : []
     * @return : java.util.Set<java.lang.String>
     * @description : 查询所有的敏感词
     */
    List<SensitiveWord> getSensitiveWords();

    /***
    * @author: HarryXzy
    * @date: 2022/6/14 08:57
    * @return: com.kgc.scd.util.PageSupport<com.kgc.scd.bean.SensitiveWordResult>
    * @description: 查所有的敏感词封装种类
    */
    PageSupport<SensitiveWordResult> getAllSensitiveWord(int pageNo, int pageSize);

    /***
    * @author: HarryXzy
    * @date: 2022/6/14 08:57
    * @return: void
    * @description: 删除关键词
    */
    boolean deleteSensitiveWord(String sensitiveWord);

    /**
    * @author: HarryXzy
    * @date: 2022/6/14 09:12
    * @return: boolean
    * @description: 添加敏感词
    */
    boolean addSensitiveWord(String catrgoryId,String sensitiveWord);

    /**
     * @author: HarryXzy
     * @date: 2022/6/14 09:12
     * @return: boolean
     * @description: 获取敏感词种类
     */
    List<SensitiveType> getSensitiveWordType();
}
